<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script src="https://unpkg.com/vue@next"></script>
<div id="app">
    <input type="checkbox" id="jack" value="Jack" v-model="checkedNames"/>
    <label for="jack">Jack</label>
    <input  type="checkbox" id="tom" value="Tom" v-model="checkedNames"/>
    <label for="tom">Tom</label>

    <span> checked Names: {{checkedNames}}</span>
</div>

<script>
    const vueOpt = {
        data(){
            return {
                checkedNames: []
            }
        }
    }

    Vue.createApp(vueOpt).mount('#app')
</script>
</body>
</html>
